﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

public partial class System_Admin_AdminList : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            Delete();
            BindData();
        }
    }

    protected void BindData()
    {
        gv.DataSource = new MatchIns.BLL.TAdmin().GetList();
        gv.DataBind();
    }

    protected void Delete()
    {
        int userid;
        if (int.TryParse(Request.QueryString["userid"], out userid))
        {
            new MatchIns.BLL.TAdmin().Delete(userid);
        }
    }
}
